package com.demo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Data
@Document(indexName = "user-table",shards = 3, replicas = 2)
public class EsUser  {
    @Id
    private String id;

    private String name;

    private String sex;

    private Integer age;
}
